import getdatasvc from "./service/getdatasvc";
class GetDataINTF {
    constructor(canvas) {
        this.m_pCanvas = canvas;
        this.m_pService = new getdatasvc.GetDataSvc(canvas.getDataManager());
    }

    getMapSelInfo(mosScreenPos) {
        return this.m_pService.getMapSelInfo(mosScreenPos);
    }
    getGraphInfo(type,gid){
        return this.m_pService.getGraphInfo(type,gid);
    }

    getCoordDatas(gid){
        console.log("getCoordDatas*****");
        return this.m_pService.getCoordDatas(gid);
    }

    getLineDefDatas(gid){
        console.log("getLineDefDatas*****");
        return this.m_pService.getLineDefDatas(gid);
    }

    getFillDefDatas(gid){
        console.log("getFillDefDatas*****");
        return this.m_pService.getFillDefDatas(gid);
    }

    getExtDatas(gid){
        console.log("getExtDatas*****");
        return this.m_pService.getExtDatas(gid);
    }

    getNewTextInfo(){
        return this.m_pService.getNewTextInfo();
    }

    getCanvasBackColor(){
        return this.m_pService.getCanvasBackColor();
    }

    getAttachLabel(gid){
        return this.m_pService.getAttachLabel(gid);
    }

    getConfigValue(cfgName){
        return this.m_pService.getConfigValue(cfgName);
    }

    getMapValidSize(){
        return this.m_pService.getMapValidSize();
    }
}

export default { GetDataINTF }